import { EntityModel } from '@midwayjs/orm';
import {Column, PrimaryGeneratedColumn} from 'typeorm';
@EntityModel('mid_role_resource')
export class RoleUser {
  // constructor(data) {
  //   let newData = data || {};
  //   this.id = newData.id;
  //   this.roleId = newData.roleId;
  //   this.userId = newData.userId;
  // }

  @PrimaryGeneratedColumn('uuid')
  id: string;
  //角色id
  @Column({
    length:36
  })
  roleId: string;
  //资源id
  @Column({
    length:36
  })
  resourceId: string;
}
